<?php

App::uses('AppRule', 'Lib');

class AutoApprove extends AppRule {

    public function apply(Leave $leave) {
        $leave->setApproved(true);
        return true;
    }

}

?>